<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>Index</title>
    <meta name="description" content="">
    <meta
    name="keywords" content="">

    <!-- Favicons -->
    <link href="assets/img/favicon.png" rel="icon">
    <link
    href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com" rel="preconnect">
    <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
    <link
    href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">

    <!-- Vendor CSS Files -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css">
    <link
    rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">

    <!-- Main CSS File -->
    <link
    href="assets/css/main.css" rel="stylesheet">

    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
  </head>


  <body class="index-page">

    <header id="header" class="header d-flex align-items-center fixed-top">
      <div class="container-fluid container-xl position-relative d-flex align-items-center">

        <a
          href="index.html" class="logo d-flex align-items-center me-auto">
          <!-- Uncomment the line below if you also wish to use an image logo -->
          <img src="assets/img/logo.png" alt="">
          <h1 class="sitename">Rain 激活系统</h1>
        </a>

        <nav id="navmenu" class="navmenu">
          <ul>
            <li>
              <a href="#hero" class="active">主页<br></a>
            </li>
            <li>
              <a href="#about">关于</a>
            </li>
            <li>
              <a href="#feature">特色</a>
            </li>
            <li>
              <a href="#language">语言支持</a>
            </li>
          </ul>
          <i class="mobile-nav-toggle d-xl-none bi bi-list"></i>
        </nav>

        <a class="btn-getstarted flex-md-shrink-0" href="/#/homepage" target="_top">控制台</a>

      </div>
    </header>

    <main
      class="main">

      <!-- Hero Section -->
      <section id="hero" class="hero section">

        <div class="container">
          <div class="row gy-4">
            <div class="col-lg-6 order-2 order-lg-1 d-flex flex-column justify-content-center">
              <h1 data-aos="fade-up">Rain 激活系统</h1>
              <p data-aos="fade-up" data-aos-delay="100">
                她是一个免费的软件激活解决方案，为开发者提供多语言的 SDK
              </p>
              <p data-aos="fade-up" data-aos-delay="150">
                通过轻量级 API 设计，Rain 可集成到各种应用程序中，提供安全、灵活的激活与授权管理，适用于 SaaS、桌面软件、游戏等多个领域。
              </p>
              <p data-aos="fade-up" data-aos-delay="200">
                我们提供详细的开发文档和示例代码，帮助开发者快速上手
              </p>
              <div class="d-flex flex-column flex-md-row" data-aos="fade-up" data-aos-delay="200">
                <a href="/#/login" target="_top" class="btn-get-started">开始使用
                  <i class="bi bi-arrow-right"></i>
                </a>

              </div>
            </div>
            <div class="col-lg-6 order-1 order-lg-2 hero-img" data-aos="zoom-out">
              <img src="assets/img/hero-img.png" class="img-fluid animated" alt="">
            </div>
          </div>
        </div>

      </section>
      <!-- /Hero Section -->

      <!-- About Section -->
      <section id="about" class="about section">

        <div class="container" data-aos="fade-up">
          <div class="row gx-0">

            <div class="col-lg-6 d-flex flex-column justify-content-center" data-aos="fade-up" data-aos-delay="200">
              <div class="content">
                <h3>软件激活</h3>
                <h2>成熟且安全的软件激活方案</h2>
                <p>采用 在线激活+离线验证 双重保护模式，仅需网络激活一次。多重软件密钥加密模式，激活代码与设备代码双向绑定，为开发者的软件提供全面的保护</p>
              </div>
            </div>

            <div class="col-lg-6 d-flex align-items-center" data-aos="zoom-out" data-aos-delay="200">
              <img src="assets/img/code.jpg" class="img-fluid" alt="">
            </div>

          </div>
        </div>

      </section>
      <!-- /About Section -->

      <!-- Values Section -->
      <section
        id="feature" class="values section">

        <!-- Section Title -->
        <div class="container section-title" data-aos="fade-up">
          <p>她能做什么<br></p>
        </div>
        <!-- End Section Title -->

        <div class="container">

          <div class="row gy-4">

            <div class="col-lg-4" data-aos="fade-up" data-aos-delay="100">
              <div class="card">
                <img src="assets/img/values-1.png" class="img-fluid" alt="">
                <h3>激活码颁发</h3>
                <p>为软件提供激活系统，开发者可在平台上批量创建软件激活码，用于远程激活</p>
              </div>
            </div>
            <!-- End Card Item -->

            <div class="col-lg-4" data-aos="fade-up" data-aos-delay="200">
              <div class="card">
                <img src="assets/img/values-2.png" class="img-fluid" alt="">
                <h3>快速开发</h3>
                <p>提供开箱即用的SDK，让开发者在短时间内为软件搭建授权系统，让开发者更专注于编写软件业务本身</p>
              </div>
            </div>
            <!-- End Card Item -->

            <div class="col-lg-4" data-aos="fade-up" data-aos-delay="300">
              <div class="card">
                <img src="assets/img/values-3.png" class="img-fluid" alt="">
                <h3>高级加密算法</h3>
                <p>使用高级非对称加密算法保护凭证，极大增加信息传输和密钥管理的安全性</p>
              </div>
            </div>
            <!-- End Card Item -->

          </div>

        </div>

      </section>
      <!-- /Values Section -->

      <!-- Features Section -->
      <section
        id="language" class="features section">

        <!-- Section Title -->
        <div class="container section-title" data-aos="fade-up">
          <p>我们的语言SDK支持<br></p>
        </div>
        <!-- End Section Title -->

        <div class="container">

          <div class="row gy-5">

            <div class="col-xl-6" data-aos="zoom-out" data-aos-delay="100">
              <img src="assets/img/features.png" class="img-fluid" alt="">
            </div>

            <div class="col-xl-6 d-flex">
              <div class="row align-self-center gy-4" data-aos-delay="200">

                <div class="col-md-6" data-aos="fade-up">
                  <div class="feature-box d-flex align-items-center">
                    <i class="bi bi-check"></i>
                    <div class="language-item">
                      <img src="assets/img/language/cpp.svg" alt="">
                      <h3>C++</h3>
                    </div>
                  </div>
                </div>
                <!-- End Feature Item -->

                <div class="col-md-6" data-aos="fade-up">
                  <div class="feature-box d-flex align-items-center">
                    <i class="bi bi-check"></i>
                    <div class="language-item">
                      <img src="assets/img/language/java.svg" alt="">
                      <h3>Java</h3>
                    </div>
                  </div>
                </div>
                <!-- End Feature Item -->

                <div class="col-md-6" data-aos="fade-up">
                  <div class="feature-box d-flex align-items-center">
                    <i class="bi bi-check"></i>
                    <div class="language-item">
                      <img src="assets/img/language/python.svg" alt="">
                      <h3>Python</h3>
                    </div>
                  </div>
                </div>
                <!-- End Feature Item -->
              </div>
            </div>
          </div>
        </div>
      </section>
      <!-- /Features Section -->


      <!-- Stats Section -->
      <section id="stats" class="stats section">

        <div class="container" data-aos="fade-up" data-aos-delay="100">

          <div class="row gy-4">

            <div class="col-lg-3 col-md-6">
              <div class="stats-item d-flex align-items-center w-100 h-100">
                <i class="bi bi-people color-blue flex-shrink-0"></i>
                <div>
                  <span id="totalUsers" data-purecounter-start="0" data-purecounter-end="232" data-purecounter-duration="1" class="purecounter"></span>
                  <p>总用户数量</p>
                </div>
              </div>
            </div>
            <!-- End Stats Item -->

            <div class="col-lg-3 col-md-6">
              <div class="stats-item d-flex align-items-center w-100 h-100">
                <i class="bi bi-bag color-orange flex-shrink-0" style="color: #ee6c20;"></i>
                <div>
                  <span id="totalProducts" data-purecounter-start="0" data-purecounter-end="521" data-purecounter-duration="1" class="purecounter"></span>
                  <p>产品数量</p>
                </div>
              </div>
            </div>
            <!-- End Stats Item -->

            <div class="col-lg-3 col-md-6">
              <div class="stats-item d-flex align-items-center w-100 h-100">
                <i class="bi bi-credit-card-fill color-green flex-shrink-0" style="color: #15be56;"></i>
                <div>
                  <span id="totalLicenses" data-purecounter-start="0" data-purecounter-end="1463" data-purecounter-duration="1" class="purecounter"></span>
                  <p>总授权码</p>
                </div>
              </div>
            </div>
            <!-- End Stats Item -->

            <div class="col-lg-3 col-md-6">
              <div class="stats-item d-flex align-items-center w-100 h-100">
                <i class="bi bi-key color-pink flex-shrink-0" style="color: #bb0852;"></i>
                <div>
                  <span id="totalActivations" data-purecounter-start="0" data-purecounter-duration="1" class="purecounter"></span>
                  <p>总激活次数</p>
                </div>
              </div>
            </div>
            <!-- End Stats Item -->
          </div>
        </div>
      </section>
      <!-- /Stats Section -->


    </main>

    <footer id="footer" class="footer">
      <div class="container copyright text-center mt-4">
        <p>©
          <span>Copyright</span>
          <strong class="px-1 sitename">RainSoftware</strong>
          <span>All Rights Reserved</span>
        </p>
      </div>
    </footer>

    <!-- Scroll Top -->
    <a href="#" id="scroll-top" class="scroll-top d-flex align-items-center justify-content-center">
      <i class="bi bi-arrow-up-short"></i>
    </a>

    <!-- Vendor JS Files -->
    <!-- Bootstrap -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>

    <!-- PHP Email Form Validator (this might be custom or specific to your project, no official CDN) -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/validate.js/0.13.1/validate.min.js"></script>

    <!-- AOS (Animate on Scroll) -->
    <script src="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.js"></script>

    <!-- PureCounter (for animated number counters) -->
    <script src="
                                                                                                                                                                                                                        https://cdn.jsdelivr.net/npm/@srexi/purecounterjs@1.5.0/dist/purecounter_vanilla.min.js
                                                                                                                                                                                                                        "></script>

    <!-- ImagesLoaded (for image load detection) -->
    <script src="https://cdn.jsdelivr.net/npm/imagesloaded@4.1.4/imagesloaded.pkgd.min.js"></script>

    <!-- Isotope (for dynamic grid layouts) -->
    <script src="https://cdn.jsdelivr.net/npm/isotope-layout@3.0.6/dist/isotope.pkgd.min.js"></script>

    <!-- Swiper (for touch sliders/carousels) -->
    <script src="https://cdn.jsdelivr.net/npm/swiper@8.4.5/swiper-bundle.min.js"></script>

    <!-- Main JS File -->
    <script src="assets/js/main.js"></script>

    <script>
      fetch("https://api.yamero.cc/api/status").then(response => response.json()).then(data => {
        if (data.success && data.code === 200)
        {
          document.getElementById("totalUsers").setAttribute("data-purecounter-end", data.data.total_user);
          document.getElementById("totalProducts").setAttribute("data-purecounter-end", data.data.total_products);
          document.getElementById("totalLicenses").setAttribute("data-purecounter-end", data.data.total_license_keys);
          document.getElementById("totalActivations").setAttribute("data-purecounter-end", data.data.total_activation);

          // 重新初始化 PureCounter，确保数据更新后生效
          new PureCounter();
        }
        else
        {
          console.error("API 返回错误:", data.message);
        }
      }).catch(error => console.error("获取数据失败:", error));
    </script>
  </body>
</html></body></html>
